'Application 1-1: Making the robot follow a line.
'Refer to Application 1-1 for more details

#include <eracer.h>

'Turn on the lights of the robot so that it can see the line
SET GREEN ON
SET RED ON

Start:
IF LDR_Right LIGHT THEN TurnLeft
IF LDR_Right DARK THEN TurnRight
GOTO Start